import java.util.Scanner;

/**
 * Created by dllo on 18/3/30.
 */
public class Test07 {
    public static void main(String[] args) {
        //接受用户的输入
        //输入任意数字
        //输出 "我知道了"+这个数字的值
        //输入-1
        //程序退出
        Scanner scanner = new Scanner(System.in);
        for (; true; ) {
            System.out.println("输入任意数");
            int num = scanner.nextInt();
            System.out.println("我知道了" + num);
            if (num == -1) {
                break;
            }
        }
    }
}
       /*while (true) {
            System.out.println("输入任意数字");
            int num = scanner.nextInt();
            if (num == -1) {
                break;
            }
            System.out.println("我知道了:" + num);

        }
    }
}
*/

